import 'package:flutter/material.dart';

void main() {
  return runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Flutter初步体验",
      theme: ThemeData(primarySwatch: Colors.red),
      home: Scaffold(
        appBar: PreferredSize(
          child: AppBar(
            title: Text(
              '电影列表',
              style: TextStyle(color: Colors.white, fontSize: 15.0),
            ),
            centerTitle: true,
          ),
          preferredSize: Size.fromHeight(40.0),
        ),
        body: Container(
          height: 300.0,
          width: 200.0,
          // color: Colors.red,
          child: Text('111'),
          padding: EdgeInsets.all(10.0),
          margin: EdgeInsets.all(20.0),
          decoration: BoxDecoration(
              color: Colors.amber,
              border: Border(
                  bottom: BorderSide(width: 5.0, color: Colors.blue),
                  top: BorderSide(width: 10.0, color: Colors.red))),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {},
          child: Icon(Icons.add),
        ),
        drawer: Drawer(),
      ),
    );
  }
}
